FROM 192.168.51.87/commandcenter/alpine/openjdk:V8u275

MAINTAINER CommandCenter

WORKDIR /usr

RUN mkdir /usr/CommandCenter

RUN mkdir /usr/CommandCenter/ADMS

ADD ipcs-resource-server.tar.gz /usr/CommandCenter/ADMS/

RUN mkdir /usr/CommandCenter/ADMS/ipcs-resource-server/logs

RUN chmod 777 /usr/CommandCenter/ADMS/ipcs-resource-server/bin/*

EXPOSE 26351

WORKDIR /usr/CommandCenter/ADMS/ipcs-resource-server/bin

ENTRYPOINT ["/bin/sh", "-c","./startup.sh"]
